package designPattern.factory.factorymethod;

import designPattern.factory.simpleFactory.common.ChessPizza;

public class LDOrderPizza extends OrderPizza{
    @Override
    Pizza creatPizza(String orderType) {
        Pizza pizza = null;
        if(orderType.equals("chess")){
            pizza = new LDChessPizza();
        }else if(orderType.equals("pepper")){
            pizza = new LDPeppterPizza();
        }

        return pizza;
    }
}
